/**
 * @author Alias Cummins
 */
class com.proalias.animation.tween.RemoveTarget {
	
	private var $target:MovieClip;
	private var $delay:Number;
	private var $time:Number;
	
	public function RemoveTarget(target:MovieClip,delay:Number) {
		$target = target;
		$time = 0;
		if ($delay == undefined){
			$delay = 0;
		}else{
			$delay = delay;
		}
	}
	
	public function execute():Boolean{
		trace("FunctionCall.execute()");
		if ($time < $delay){
			$time++;
			return true;
		}else{
			$target.removeMovieClip();
			return false;
		}
	}
}
